package com.matrix.java.chap_07;

import com.matrix.java.util.ArrayUtil;

import java.util.Scanner;

/*
    找出最小元素
 */
public class Ex7_09 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("Enter ten numbers: ");
        double[] array = new double[10];
        for (int i = 0; i < array.length; i++) {
            array[i] = input.nextDouble();
        }
        input.close();
        System.out.println("The minimum number is: " + ArrayUtil.findMinInArray(array));
    }
}
